package cn.itcast.service.impl;

import cn.itcast.dao.ItemsDao;
import cn.itcast.dao.impl.ItemsDaoImpl;
import cn.itcast.domain.Items;
import cn.itcast.service.ItemsService;

import java.util.List;

public class ItemsServiceImpl implements ItemsService {
    private ItemsDao dao = new ItemsDaoImpl();

    //查询所有用户信息
    public List<Items> findAll() {
        return dao.findAll();
    }

    //添加一条商品信息
    public void add(Items it) {
        dao.add(it);
    }
}
